.class Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$3;
.super Ljava/lang/Object;
.source "NiceAppCommentDetailActivity.java"

# interfaces
.implements Lcom/brixd/niceapp/activity/fragment/adapter/CommentDetailAdapter$OnCommentLongClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->initWidgetsActions()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    .prologue
    .line 200
    iput-object p1, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$3;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public OnCommentLongClick(Landroid/view/View;Lcom/brixd/niceapp/model/CommentModel;)V
    .registers 7
    .param p1, "view"    # Landroid/view/View;
    .param p2, "commentModel"    # Lcom/brixd/niceapp/model/CommentModel;

    .prologue
    .line 204
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$3;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;
    invoke-static {v2}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$100(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Lcom/brixd/niceapp/model/UserModel;

    move-result-object v2

    if-eqz v2, :cond_44

    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$3;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    # getter for: Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;
    invoke-static {v2}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->access$100(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;)Lcom/brixd/niceapp/model/UserModel;

    move-result-object v2

    invoke-virtual {v2}, Lcom/brixd/niceapp/model/UserModel;->getUid()I

    move-result v2

    invoke-virtual {p2}, Lcom/brixd/niceapp/model/CommentModel;->getAuthorUser()Lcom/brixd/niceapp/model/CommonUserModel;

    move-result-object v3

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/CommonUserModel;->getUserId()I

    move-result v3

    if-ne v2, v3, :cond_44

    .line 205
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 206
    .local v0, "items":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$3;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    const v3, 0x7f0c0053

    invoke-virtual {v2, v3}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 207
    new-instance v1, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$3;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    invoke-virtual {v2}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2, v0}, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;-><init>(Landroid/content/Context;Ljava/util/List;)V

    .line 208
    .local v1, "menu":Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;
    new-instance v2, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$3$1;

    invoke-direct {v2, p0, v1, p2}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$3$1;-><init>(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$3;Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;Lcom/brixd/niceapp/model/CommentModel;)V

    invoke-virtual {v1, v2}, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 217
    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->show()V

    .line 233
    :goto_43
    return-void

    .line 220
    .end local v0    # "items":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    .end local v1    # "menu":Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;
    :cond_44
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 221
    .restart local v0    # "items":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$3;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    const v3, 0x7f0c0052

    invoke-virtual {v2, v3}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 222
    new-instance v1, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$3;->this$0:Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;

    invoke-virtual {v2}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2, v0}, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;-><init>(Landroid/content/Context;Ljava/util/List;)V

    .line 223
    .restart local v1    # "menu":Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;
    new-instance v2, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$3$2;

    invoke-direct {v2, p0, v1, p2}, Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$3$2;-><init>(Lcom/brixd/niceapp/activity/NiceAppCommentDetailActivity$3;Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;Lcom/brixd/niceapp/model/CommentModel;)V

    invoke-virtual {v1, v2}, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 231
    invoke-virtual {v1}, Lcom/brixd/niceapp/activity/fragment/DetailContextMenu;->show()V

    goto :goto_43
.end method
